CommandText Class Reference

#include <CommandText.h>

List of all members.

Public Member Functions

 CommandText (OSGWindows *osgwind)
 ~CommandText ()
osg::ref_ptr< osg::Projection > CreateHUD (osg::ref_ptr< osg::Geode > hudGeometry, int width, int height, int binNumber=11, const char *binName="RenderBin")
osg::ref_ptr< osg::Geode > createText (string str)
osg::ref_ptr< osg::Group > createTextGroup ()

Protected Attributes

osg::ref_ptr< osg::Geode > geode
osg::ref_ptr< osgText::Text > text
OSGWindows * osgwind_


Detailed Description

CommandText class. This class is used for the aim of inserting text into the scene. The period of the texts are determined in the editor and inserted in necssary frames. In the animation texts are seen in the corresponding frames for 2 seconds. The texts are objects like other object types of osg and they are used as projections in both editor and animation.


Constructor & Destructor Documentation

CommandText::CommandText (  OSGWindows *  osgwind  ) 
 

CommandText constructor.

Parameters:
osgwind 

CommandText::~CommandText (   ) 
 

CommandText destructor.


Member Function Documentation

osg::ref_ptr<osg::Projection> CommandText::CreateHUD (  osg::ref_ptr< osg::Geode >  hudGeometry,
int  width,
int  height,
int  binNumber = 11,
const char *  binName = "RenderBin"
) 
 

Takes the 2D orthogonal of the geometry of the text object.

Parameters:
hudGeometry 
width 
height 
binNumber 
binName 
Returns:
The Projection matrix of the text.

osg::ref_ptr<osg::Geode> CommandText::createText (  string  str  ) 
 

Parameters:
str a string variable
Returns:
The Geode of the text. Adjusts the font, character size and position of the text and retsurn its geom.

osg::ref_ptr<osg::Group> CommandText::createTextGroup (   ) 
 

Returns:
the Group of the created text Adds the text objects to a sequence variable and assigns a time for each text to be seen in the scene.


Member Data Documentation

osg::ref_ptr<osg::Geode> CommandText::geode [protected]
 

OSGWindows* CommandText::osgwind_ [protected]
 

osg::ref_ptr<osgText::Text> CommandText::text [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO